package main

import "fmt"

func main() {
	ch := make(chan string, 2) // queue<string> ch
	ch <- "hello"              // ch.push("hello")
	ch <- "world"              // ch.push("world")
	ch <- "haha"
	var s string
	s = <-ch // s = ch.pop()
	fmt.Println(s)
	s = <-ch // s = ch.pop()
	fmt.Println(s)
}
